<template>
    <input type="number" name="" id="" :value="prop.msg" @change="e => {
        prop.event(e.target.value)
    }">
    <div>{{ prop.msg }}</div>
</template>

<script setup>
const prop = defineProps({
    msg: {
        type: String
    },
    event: {
        type: Function
    }
})
</script>

<style scoped lang="less"></style>